#!/bin/bash
# 创建虚拟环境并安装依赖

set -e

cd "$(dirname "$0")"

# 创建虚拟环境
if [ ! -d "venv" ]; then
    echo "创建虚拟环境..."
    python3 -m venv venv
fi

# 安装依赖
echo "安装依赖..."
source venv/bin/activate
pip install -r requirements.txt

echo "完成！"
